<?php


namespace App\Model;


use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Tymon\JWTAuth\Contracts\JWTSubject;

class Account extends Authenticatable implements JWTSubject
{
    use Notifiable;

    protected $table = 'bfEMP';

    protected $primaryKey = 'EmpID';
//    public $incrementing = false;
    protected $keyType = 'string';

//    protected $fillable = [];
    protected $hidden = ['mPic','LoginPass'];
    protected $visible = ['EmpID','LoginUser'];


    /**
     * Get the identifier that will be stored in the subject claim of the JWT.
     *
     * @return mixed
     */
    public function getJWTIdentifier()
    {
        return $this->getKey();
    }

    /**
     * Return a key value array, containing any custom claims to be added to the JWT.
     *
     * @return array
     */
    public function getJWTCustomClaims()
    {
        return [];
    }
}